package com.ruoyi.system.mapper;

import java.util.List;

import com.ruoyi.system.domain.WorkPhoto;
import org.apache.ibatis.annotations.Param;

/**
 * 照片表Mapper接口
 *
 * @author ruoyi
 * @date 2020-04-20
 */
public interface WorkPhotoMapper {
    /**
     * 查询照片表
     *
     * @param id 照片表ID
     * @return 照片表
     */
    public WorkPhoto selectWorkPhotoById(Long id);

    /**
     * 查询照片表列表
     *
     * @param workPhoto 照片表
     * @return 照片表集合
     */
    public List<WorkPhoto> selectWorkPhotoList(WorkPhoto workPhoto);

    /**
     * 新增照片表
     *
     * @param workPhoto 照片表
     * @return 结果
     */
    public int insertWorkPhoto(WorkPhoto workPhoto);

    /**
     * 修改照片表
     *
     * @param workPhoto 照片表
     * @return 结果
     */
    public int updateWorkPhoto(WorkPhoto workPhoto);

    /**
     * 删除照片表
     *
     * @param id 照片表ID
     * @return 结果
     */
    public int deleteWorkPhotoById(Long id);

    /**
     * 批量删除照片表
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWorkPhotoByIds(String[] ids);

    List<WorkPhoto> selectWorkPhotoByFaultId(@Param("id") Long id);

    void deleteWorkPhotoByFaultId(@Param("id") Long id);

    void deleteWorkPhotoByFaultPhoto(@Param("id") Long id);

    List<WorkPhoto> selectWorkPhotoByByFinishId(@Param("id") Long id);

    Long insertWorkPhotoByIds(WorkPhoto workPhoto);

    int insertWorkPhotoByFault(@Param("ids1") Long ids1, @Param("ids2") Long ids2);

    void insertWorkPhotobyWorkId(@Param("username") Long username, @Param("id") Long id);

    void deleteWorkPhotoByNothing(@Param("id1") Long id1);
}
